#ifndef FIRSTFLOOR_H
#define FIRSTFLOOR_H

#include <QMainWindow>

namespace Ui {
class FirstFloor;
}

class FirstFloor : public QMainWindow
{
    Q_OBJECT

public:
    explicit FirstFloor(QWidget *parent = 0);
    ~FirstFloor();
    void paintEvent(QPaintEvent *event);
    void Init();
    void keyPressEvent(QKeyEvent *event);

private slots:
    void Enemy_update();

private:
    Ui::FirstFloor *ui;
    QTimer *timer;
    QRect Person;
    QPixmap BlueDoor;
    QPixmap RedDoor;
    QRect Wall[16];
    QRect Enemy[15];
    int nDirection[15];
    QString sDisplay;
    bool blsRun;
    bool blsOver;
    bool blsSuccess;
    int bloods;

};

#endif // FIRSTFLOOR_H
